<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/6/9 0009
 * Time: 上午 9:55
 */

namespace DataAPI\Controller;


use DataAPI\Model\ExcelModel;
use Think\Controller;

class ExcelController extends Controller
{
    public $excel;
    protected $table;
    function __construct()
    {
        parent::__construct();
        set_time_limit(0);
        $this->excel = new ExcelModel();
        $this->table = M('test_supplier_products');
    }

    public function index(){
       // $this->display();
    }
    public function test(){
        header("Content-type:text/html;charset=utf-8");
        $this->excel->filePath = 'C:\Users\Administrator\Documents\test.xls';
        $this->excel->readExcel( $this->excel->filePath);
    }
}